package org.example;

/**
 *
 */
public class TwoNumberSum {

  public int[] twoSum(int[] nums, int target) {

    for (int i = 0; i < nums.length; i++) {
      int num1 = nums[i];
      for (int j = i + 1; j < nums.length; j++) {
        int num2 = nums[j];
        if (num1 + num2 == target) {
          return new int[]{i, j};
        }
      }
    }
    return null;

  }


  public static void main(String[] args) {
    int[] testArrya = new int[]{3,3};
    TwoNumberSum test = new TwoNumberSum();
    test.twoSum(testArrya, 6);
  }
}
